package libc

/*
#include <stdio.h>
#include <stdlib.h>
#include <go_c.h>
void printlnx(char *s) {
    printf("%s\n", s);
}
*/
import "C"
import (
	"unsafe"
)

// 内嵌

func GoCInsert(s string) {
	cs := C.CString(s)
	defer C.free(unsafe.Pointer(cs))
	C.printlnx(cs)
}
func GoToC(s string) {
	C.SayHello(C.CString(s))
}
